{include file="public/head"}
<body>

<header class="aui-header-default aui-header-fixed aui-header-bg">
    <div class="aui-header-center">
        <span>分类</span>
    </div>
</header>
<section class="aui-scroll-contents">
    <div class="aui-scroll-box" data-ydui-scrolltab>
        <div class="aui-scroll-nav">
            {volist name="ClassList" id="v"}
            <a href="#" class="aui-scroll-item aui-crt">
                <div class="aui-scroll-item-icon"></div>
                <div class="aui-scroll-item-text">{$v.name}</div>
            </a>
            {/volist}
        </div>
        <div class="aui-scroll-content">
            {volist name="ClassList" id="vv"}
            <div class="aui-scroll-content-item">
                <div class="aui-class-img">
                    <img src="{$vv.img_url}" alt="{$vv.name}">
                </div>
                <h2 class="aui-scroll-content-title">{$vv.name}</h2>
                <section class="aui-grid-content">
                    <div class="aui-grid-row aui-grid-row-clear">
                        {volist name="$vv.son" id="vvv"}
                        <a href="{:url('Goods/GoodsList',array('ClassID'=>$vv.id))}" class="aui-grid-row-item">
                            <i class="aui-icon-large aui-icon-sign"><img src="{$vvv.img_url}" alt=""></i>
                            <p class="aui-grid-row-label">{$vvv.name}</p>
                        </a>
                        {/volist}
                    </div>
                </section>
            </div>
            {/volist}
        </div>
    </div>
</section>


<footer class="aui-footer-default aui-footer-fixed">
    <a href="{:url('Index/App')}" class="aui-footer-item ">
        <span class="aui-footer-item-icon aui-icon aui-footer-icon-home"></span>
        <span class="aui-footer-item-text">首页</span>
    </a>
    <a href="{:url('Index/Index')}" class="aui-footer-item">
        <span class="aui-footer-item-icon aui-icon aui-footer-icon-car"></span>
        <span class="aui-footer-item-text">商城</span>
    </a>
    <a href="{:url('Index/pin')}" class="aui-footer-item">
        <span class="aui-footer-item-icon aui-icon aui-footer-icon-car"></span>
        <span class="aui-footer-item-text">拼团</span>
    </a>
    <a href="{:url('Goods/ClassList')}" class="aui-footer-item aui-footer-active">
        <span class="aui-footer-item-icon aui-icon aui-footer-icon-class"></span>
        <span class="aui-footer-item-text">分类</span>
    </a>
    {if condition="$UserInfo.level gt 1"}
    <a href="{:url('Order/UserCart')}" class="aui-footer-item">
        <span class="aui-footer-item-icon aui-icon aui-footer-icon-car"></span>
        <span class="aui-footer-item-text">购物车</span>
    </a>
    {/if}
<!--    <a href="{:url('Order/OrderList')}" class="aui-footer-item">-->
<!--        <span class="aui-footer-item-icon aui-icon aui-footer-icon-car"></span>-->
<!--        <span class="aui-footer-item-text">订单</span>-->
<!--    </a>-->
    <a href="{:url('User/Index')}" class="aui-footer-item">
        <span class="aui-footer-item-icon aui-icon aui-footer-icon-me"></span>
        <span class="aui-footer-item-text">我的</span>
    </a>
</footer>

<script src="__STATIC__/User/js/jquery.min.js"></script>
<script src="__STATIC__/User/js/aui.js"></script>
<script>
    $('#search').on('click',function () {
        var name=$("#name").val();
        if(name==""){
            alert('请输入商品名称');
        }else{
            window.location.href='/Goods/GoodsSearch/goodsname/'+name;
        }
    })
</script>
</body>
</html>